<?php

namespace api\console\controllers;

use api\modules\app\services\EventService;
use yii\console\Controller;

class EventController extends Controller
{

    /**
     * 定时任务，1分钟执行1次
     * 从数据中台拉取案件数据，存入到unit_history表和unit_event表
     */
    public function actionPullEvent() {
        $service  = new EventService();
        $service->changeUnNormal();
    }

    public function actionRepair() {
        $service  = new EventService();
        $service->changeRepair();
    }

    public function actionNormal() {
        $service  = new EventService();
        $service->changeNormal();
    }
}